package com.fly.common.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

/**
 * @description 用户实体
 * @author: fly
 * @date: 2018/11/20 14:32
 */
@Data
@TableName("user")
public class UserEntity {
    /**
     * 主键
     */
    @TableId(value = "user_id")
    private Long userId;
    /**
     * 姓名
     */
    @TableField(value = "real_name")
    private String realName;
    /**
     * 账户
     */
    @TableField(value = "user_name")
    private String userName;
    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;
    /**
     * 电话
     */
    @TableField(value = "mobile")
    private String mobile;
    /**
     * 地址
     */
    @TableField(value = "address")
    private String address;
    /**
     * 工号
     */
    @TableField(value = "work_num")
    private String workNum;
    /**
     * 数据状态：0-正常；1-删除
     */
    @TableField(value = "is_delete")
    @TableLogic
    private Byte delete;
}
